package gemini.basic.model;
// default package
// Generated Nov 23, 2010 4:23:01 PM by Hibernate Tools 3.4.0.Beta1

import static javax.persistence.GenerationType.IDENTITY;

import java.util.ArrayList;
import java.util.List;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import javax.persistence.Version;

/**
 * ProductDetail generated by hbm2java
 */
@Entity
@Table(name = "g_product_detail", catalog = "gemini")
public class ProductDetail extends AbstractDomain implements java.io.Serializable {

	private static final long serialVersionUID = 1L;
	
	private Integer id;
	private Integer version;
	private String content;
	private int producerId;
	private String userGuide;
	private String overview;
	private String keyBenefit;
	private String fastFacts;
	private List<Product> products = new ArrayList<Product>(0);

	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Version
	@Column(name = "version")
	public Integer getVersion() {
		return this.version;
	}

	public void setVersion(Integer version) {
		this.version = version;
	}

	@Column(name = "content", nullable = false, length = 300)
	public String getContent() {
		return this.content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	@Column(name = "producer_id", nullable = false)
	public int getProducerId() {
		return this.producerId;
	}

	public void setProducerId(int producerId) {
		this.producerId = producerId;
	}
	
	@Column(name = "user_guide", length = 300)
	public String getUserGuide() {
		return this.userGuide;
	}

	public void setUserGuide(String userGuide) {
		this.userGuide = userGuide;
	}

	@Column(name = "overview", length = 300)
	public String getOverview() {
		return this.overview;
	}

	public void setOverview(String overview) {
		this.overview = overview;
	}

	@Column(name = "key_benefit", length = 300)
	public String getKeyBenefit() {
		return this.keyBenefit;
	}

	public void setKeyBenefit(String keyBenefit) {
		this.keyBenefit = keyBenefit;
	}

	@Column(name = "fast_facts", length = 300)
	public String getFastFacts() {
		return this.fastFacts;
	}

	public void setFastFacts(String fastFacts) {
		this.fastFacts = fastFacts;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "productDetail")
	public List<Product> getProducts() {
		return this.products;
	}

	public void setProducts(List<Product> products) {
		this.products = products;
	}

}
